# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse do
  @moduledoc """


  ## Attributes

  *   `cnsTestDataPath` (*type:* `String.t`, *default:* `nil`) - Location od shards of sstables (test data) of DataUtterance protos.
  *   `cnsTrainDataPath` (*type:* `String.t`, *default:* `nil`) - Location of shards of sstables (training data) of DataUtterance protos.
  *   `prebuiltModelEvaluationMetrics` (*type:* `GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics.t`, *default:* `nil`) - The metrics for prebuilt speech models. They are included here because there is no prebuilt speech models stored in the AutoML.
  *   `speechPreprocessStats` (*type:* `GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats.t`, *default:* `nil`) - Stats associated with the data.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :cnsTestDataPath => String.t() | nil,
          :cnsTrainDataPath => String.t() | nil,
          :prebuiltModelEvaluationMetrics =>
            GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics.t() | nil,
          :speechPreprocessStats => GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats.t() | nil
        }

  field(:cnsTestDataPath)
  field(:cnsTrainDataPath)

  field(:prebuiltModelEvaluationMetrics,
    as: GoogleApi.Language.V2.Model.XPSSpeechEvaluationMetrics
  )

  field(:speechPreprocessStats, as: GoogleApi.Language.V2.Model.XPSSpeechPreprocessStats)
end

defimpl Poison.Decoder, for: GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse do
  def decode(value, options) do
    GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Language.V2.Model.XPSSpeechPreprocessResponse do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
